/**
 * UserServiceImpl.java
 * jp.co.greenblue.ecodasweb.service.impl
 *
 * Function�F TODO 
 *
 *   ver     date      		author
 * ��������������������������������������������������������������������
 *   		 2010/11/04 		jonsion
 *
 * Copyright (c) 2010, GreenBlue .  All Rights Reserved.
*/

package jp.co.greenblue.ecodasweb.service.impl;

import jp.co.greenblue.ecodasweb.dao.IUserDao;
import jp.co.greenblue.ecodasweb.domain.User;
import jp.co.greenblue.ecodasweb.service.IUserService;

/**
 * ClassName:UserServiceImpl
 * Function: TODO ADD FUNCTION
 * Reason:	 TODO ADD REASON
 *
 * @author   jonsion
 * @version  
 * @since    Ver 1.1
 * @Date	 2010/11/04		16:45:08
 *
 * @see 	 
 */
public class UserServiceImpl implements IUserService {
	private IUserDao userDao;

	public void setUserDao(IUserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public boolean canLogin(String userName, String passWord) {
		User user=userDao.getUserByUserName(userName,passWord);
		if(user!=null)return true;
		// TODO Auto-generated method stub
		return false;
		
	}
	
	
}

